home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / chrome / browser.jar / content / browser / browser.xul < prev    next >
Extensible Markup Language  |  2007-05-14  |  81KB  |  1,439 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  4.  
  5.  
  6. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  7.  
  8.  
  9. <?xml-stylesheet href="chrome://global/skin/toolbar.css" type="text/css"?>
  10. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  11.  
  12. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  13.  
  14. <!--
  15.      BEGIN FLOCK GPL
  16.      
  17.      Copyright Flock Inc. 2005-2007
  18.      http://flock.com
  19.      
  20.      This file may be used under the terms of of the
  21.      GNU General Public License Version 2 or later (the "GPL"),
  22.      http://www.gnu.org/licenses/gpl.html
  23.      
  24.      Software distributed under the License is distributed on an "AS IS" basis,
  25.      WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  26.      for the specific language governing rights and limitations under the
  27.      License.
  28.      
  29.      END FLOCK GPL
  30. -->
  31. <?xul-overlay href="chrome://browser/content/flock/common/scriptsOverlay.xul"?>
  32. <?xul-overlay href="chrome://browser/content/flock/menus/menusOverlay.xul"?>
  33. <?xul-overlay href="chrome://browser/content/flock/menus/setsOverlay.xul"?>
  34.  
  35. <!DOCTYPE window [
  36. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  37. %brandDTD;
  38. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  39. %browserDTD;
  40. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  41. %globalDTD;
  42. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  43. %globalRegionDTD;
  44. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  45. %charsetDTD;
  46. <!ENTITY % findBarDTD SYSTEM "chrome://global/locale/findbar.dtd" >
  47. %findBarDTD;
  48. <!ENTITY % flockMenusDTD SYSTEM "chrome://flock/locale/menus/menusOverlay.dtd" >
  49. %flockMenusDTD;
  50. <!ENTITY % safebrowsingDTD SYSTEM "chrome://browser/locale/safebrowsing/phishing-afterload-warning-message.dtd">
  51. %safebrowsingDTD;
  52. ]>
  53.  
  54.  
  55. <window id="main-window"
  56.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  57.         xmlns:fl="http://flock.com/rdf#"
  58.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  59.         onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
  60.         contenttitlesetting="true"
  61.         title="&mainWindow.title;"
  62.         titlemodifier="&mainWindow.title;"
  63.         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  64.         windowtype="navigator:browser"
  65.         screenX="4" screenY="4"
  66.         persist="screenX screenY width height sizemode"> 
  67.  
  68.  
  69. <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  70. <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  71. <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  72. <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  73. <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  74. <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  75. <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarksMenu.js"/>
  76. <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  77. <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  78. <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
  79. <script type="application/x-javascript" src="chrome://global/content/viewSourceUtils.js"/>
  80.  
  81. <script type="application/x-javascript" src="chrome://browser/content/safebrowsing/sb-loader.js"/>
  82. <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  83.  
  84.  
  85.  
  86.   <script type="application/x-javascript">
  87.   <![CDATA[
  88.     function reportBrowserMetrics(aAction, aTarget) {
  89.       var message = aAction + ' from ' + aTarget.id;
  90.       dump(message+"\n");
  91.       var metrics = Components.classes['@flock.com/metrics-service;1'].getService(Components.interfaces.flockIMetricsService);
  92.       metrics.reportCount(message); 
  93.     }
  94.   ]]> 
  95.   </script>
  96.  
  97.   <stringbundleset id="stringbundleset"> 
  98.     <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
  99.     <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
  100.     <stringbundle id="bundle_findBar" src="chrome://global/locale/findbar.properties"/>
  101.     <stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/>
  102.   </stringbundleset>
  103.  
  104.   <commandset id="globalEditCommandSet"
  105.               commandupdater="true"
  106.               events="focus"
  107.               oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  108.   <commandset id="selectEditCommandSet"
  109.               commandupdater="true"
  110.               events="select"
  111.               oncommandupdate="goUpdateSelectEditMenuItems()"/>
  112.   <commandset id="undoEditCommandSet"
  113.               commandupdater="true"
  114.               events="undo"
  115.               oncommandupdate="goUpdateUndoEditMenuItems()"/>
  116.   <commandset id="pasteCommandSet"
  117.               commandupdater="true"
  118.               events="clipboard"
  119.               oncommandupdate="goUpdatePasteMenuItems()"/>
  120.   
  121.   <commandset id="mainCommandSet">
  122.     <command id="cmd_newNavigator"                 oncommand="OpenBrowserWindow()"/>
  123.     <command id="cmd_bm_open"                      oncommand="goDoCommand('cmd_bm_open');"/>
  124.     <command id="cmd_bm_openinnewwindow"           oncommand="goDoCommand('cmd_bm_openinnewwindow');"/>
  125.     <command id="cmd_bm_openinnewtab"              oncommand="goDoCommand('cmd_bm_openinnewtab');"/>
  126.     <command id="cmd_bm_openfolder"                oncommand="goDoCommand('cmd_bm_openfolder');"/>
  127.     <command id="cmd_bm_managefolder"              oncommand="goDoCommand('cmd_bm_managefolder');"/>
  128.     <command id="cmd_bm_newfolder"                 oncommand="goDoCommand('cmd_bm_newfolder');"/>
  129.     <command id="cmd_bm_newbookmark"               oncommand="goDoCommand('cmd_bm_newbookmark');"/>
  130.     <command id="cmd_bm_newseparator"              oncommand="goDoCommand('cmd_bm_newseparator');"/>
  131.     <command id="cmd_bm_properties"                oncommand="goDoCommand('cmd_bm_properties');"/>
  132.     <command id="cmd_bm_refreshlivemark"           oncommand="goDoCommand('cmd_bm_refreshlivemark');"/>
  133.     <command id="cmd_bm_refreshmicrosummary"       oncommand="goDoCommand('cmd_bm_refreshmicrosummary');"/>
  134.     <command id="cmd_bm_rename"                    oncommand="goDoCommand('cmd_bm_rename');"/>
  135.     <command id="cmd_bm_moveBookmark"              oncommand="goDoCommand('cmd_bm_moveBookmark');"/>
  136.     <command id="cmd_bm_sortbyname"                oncommand="goDoCommand('cmd_bm_sortbyname');"/>
  137.  
  138.     <command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();"/>
  139.     <command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();"/>
  140.  
  141.     <command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
  142.     <command id="Browser:OpenFile"  oncommand="BrowserOpenFileWindow();"/>
  143.     <command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
  144.     <command id="Browser:SaveFrame" oncommand="saveFrameDocument();"/>
  145.  
  146.     <command id="Browser:SendLink" oncommand="MailIntegration.sendLinkForContent();"/>
  147.  
  148.     <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
  149.     <command id="cmd_print" oncommand="PrintUtils.print();"/>
  150.     <command id="cmd_printPreview" oncommand="PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);"/>
  151.     <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
  152.     <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
  153.     <command id="cmd_toggleTaskbar" oncommand="goToggleToolbar('status-bar','toggle_taskbar');"/>
  154.     <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
  155.   
  156.     <command id="cmd_copyLink"
  157.              oncommand="goDoCommand('cmd_copyLink')"
  158.              disabled="false"/>
  159.     <command id="cmd_copyImageLocation"
  160.              oncommand="goDoCommand('cmd_copyImageLocation')"
  161.              disabled="false"/>
  162.     <command id="cmd_copyImageContents"
  163.              oncommand="goDoCommand('cmd_copyImageContents')"
  164.              disabled="false"/>
  165.     <command id="cmd_undo" 
  166.              oncommand="goDoCommand('cmd_undo')"
  167.              disabled="true"/>
  168.     <command id="cmd_redo" 
  169.              oncommand="goDoCommand('cmd_redo')"
  170.              disabled="true"/>
  171.     <command id="cmd_cut" 
  172.              oncommand="goDoCommand('cmd_cut')"
  173.              disabled="true"/>
  174.     <command id="cmd_copy" 
  175.              oncommand="goDoCommand('cmd_copy')"
  176.              disabled="true"/>
  177.     <command id="cmd_paste" 
  178.              oncommand="goDoCommand('cmd_paste')"
  179.              disabled="true"/>
  180.     <command id="cmd_delete"
  181.              oncommand="goDoCommand('cmd_delete')"
  182.              valueDefault="&deleteCmd.label;"
  183.              disabled="true"/>
  184.     <command id="cmd_selectAll"
  185.              oncommand="goDoCommand('cmd_selectAll')"
  186.              disabled="true"/>
  187.     <command id="cmd_switchTextDirection"
  188.              oncommand="goDoCommand('cmd_switchTextDirection');"
  189.              disabled="true"/>
  190.  
  191.     <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/>
  192.     <command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
  193.     <command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
  194.     <command id="cmd_find" oncommand="gFindBar.onFindCmd();" observes="isImage"/>
  195.     <command id="cmd_findAgain" oncommand="gFindBar.onFindAgainCmd();" observes="isImage"/>
  196.     <command id="cmd_findPrevious" oncommand="gFindBar.onFindPreviousCmd();" observes="isImage"/>    
  197.     <command id="Browser:AddBookmarkAs" oncommand="Components.classes['@flock.com/metrics-service;1'].getService(Components.interfaces.flockIMetricsService).reportCount('new favorite by key/menu');addBookmarkAs(document.getElementById('content'), false);"/>
  198.     <command id="Browser:BookmarkAllTabs" oncommand="addBookmarkAs(document.getElementById('content'), true);"/>
  199.     <command id="Browser:Home"    oncommand="BrowserHome();"/>
  200.     <command id="Browser:Back"    oncommand="BrowserBack();" disabled="true"/>
  201.     <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
  202.     <command id="Browser:Stop"    oncommand="BrowserStop();" disabled="true"/>
  203.     <command id="Browser:Reload"  oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/>
  204.     <command id="Browser:ReloadSkipCache"  oncommand="BrowserReloadSkipCache()" disabled="true"/>
  205.     <command id="cmd_textZoomReduce"  oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  206.     <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  207.     <command id="cmd_textZoomReset" oncommand="ZoomManager.prototype.getInstance().reset();"/>
  208.     <command id="Browser:OpenLocation" oncommand="openLocation();"/>
  209.  
  210.     <command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/>    
  211.     <command id="Tools:Downloads" oncommand="toOpenWindowByType('Download:Manager', 
  212.                                                                 'chrome://mozapps/content/downloads/downloads.xul',
  213.                                                                 'chrome,dialog=no,resizable');"/>
  214.     <command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
  215.     <command id="Tools:Sanitize" oncommand="gBrowserGlue.sanitize(window || null);"/>
  216.     <command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
  217.   </commandset>
  218.  
  219.  
  220.   <broadcasterset id="mainBroadcasterSet">
  221.     <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
  222.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
  223.                  sidebartitle="&flock.menus.favsites;"
  224.                  tooltiptextoff="&flock.menus.favsites.tip.off;"
  225.                  tooltiptexton="&flock.menus.favsites.tip.on;"
  226.                  oncommand="reportBrowserMetrics('favesSidebar', event.currentTarget); toggleSidebar('viewBookmarksSidebar');"/>
  227.  
  228.     <broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;"
  229.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/history/history-panel.xul"
  230.                  oncommand="reportBrowserMetrics('historySidebar', event.currentTarget); toggleSidebar('viewHistorySidebar');"/>
  231.                  
  232.     <broadcaster id="viewWebPanelsSidebar" autoCheck="false" 
  233.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
  234.                  oncommand="toggleSidebar('viewWebPanelsSidebar');"/>
  235.  
  236.     <!-- popup blocking menu items -->
  237.     <broadcaster id="blockedPopupAllowSite" 
  238.                  accesskey="&allowPopups.accesskey;" 
  239.                  oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
  240.     <broadcaster id="blockedPopupEditSettings" 
  241.                  label="&editPopupSettings.label;"
  242.                  accesskey="&editPopupSettings.accesskey;" 
  243.                  oncommand="gPopupBlockerObserver.editPopupSettings();"/>
  244.     <broadcaster id="blockedPopupDontShowMessage" 
  245.                  accesskey="&dontShowMessage.accesskey;" 
  246.                  type="checkbox"
  247.                  oncommand="gPopupBlockerObserver.dontShowMessage();"/>
  248.     <broadcaster id="blockedPopupsSeparator"/>
  249.     <broadcaster id="isImage"/>
  250.   </broadcasterset>
  251.  
  252.   <keyset id="mainKeyset">
  253.     <key id="key_newNavigator"
  254.          key="&newNavigatorCmd.key;"
  255.          command="cmd_newNavigator"
  256.          modifiers="accel"/>
  257.     <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
  258.     <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
  259.          modifiers="accel"/>
  260.     <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
  261.          modifiers="alt"/>
  262.  
  263.     <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
  264.     <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
  265.     <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
  266.     <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile"  modifiers="accel"/>
  267.     <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  268.     <key id="printKb" key="&printCmd.commandkey;" command="cmd_print"  modifiers="accel"/>
  269.     <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
  270.     <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
  271.     <key id="key_undo"
  272.          key="&undoCmd.key;"
  273.          modifiers="accel"/>
  274.     <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
  275.     <key id="key_cut"
  276.          key="&cutCmd.key;"
  277.          modifiers="accel"/>
  278.     <key id="key_copy"
  279.          key="©Cmd.key;"
  280.          modifiers="accel"/>
  281.     <key id="key_paste"
  282.          key="&pasteCmd.key;"
  283.          modifiers="accel"/>
  284.     <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  285.     <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  286.  
  287.     <key keycode="VK_BACK" command="cmd_handleBackspace"/>
  288.     <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
  289.     <key id="goBackKb"  keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  290.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  291.     <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
  292.     <key keycode="VK_F5" command="Browser:Reload"/>
  293.     <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
  294.     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
  295.     <key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/>
  296.     <key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/>
  297.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
  298.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  299.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  300.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  301.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  302.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  303.  
  304.     <key id="addBookmarkAsKb" key="&addCurPageAsCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
  305.     <key id="bookmarkAllTabsKb" key="&addCurPageAsCmd.commandkey;" command="Browser:BookmarkAllTabs" modifiers="accel,shift"/>
  306.     <key id="viewBookmarksSidebarKb" key="&bookmarksSidebarCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  307.     <key id="viewBookmarksSidebarWinKb" key="&bookmarksSidebarWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  308.  
  309.     <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
  310.     
  311.  
  312.     <key id="key_gotoHistory"
  313.          key="&historySidebarCmd.commandKey;"
  314.          modifiers="accel"
  315.          command="viewHistorySidebar"/>
  316.  
  317.     <key id="key_textZoomReduce"  key="&textZoomReduceCmd.commandkey;"   command="cmd_textZoomReduce"  modifiers="accel"/>
  318.     <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"  command="cmd_textZoomEnlarge" modifiers="accel"/>
  319.     <key                          key="&textZoomEnlargeCmd.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  320.     <key id="key_textZoomReset"   key="&textZoomResetCmd.commandkey;"    command="cmd_textZoomReset"   modifiers="accel"/>
  321.     
  322.     <key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
  323.  
  324.     <key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
  325.     <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
  326.   </keyset>
  327.  
  328.   <keyset id="baseMenuKeyset" />
  329.  
  330.   <popupset id="mainPopupSet">
  331.     <popup id="backMenu" 
  332.            position="after_start" 
  333.            onpopupshowing="return BrowserBackMenu(event);"
  334.            oncommand="gotoHistoryIndex(event);"
  335.            onclick="checkForMiddleClick(this, event);"/>
  336.     <popup id="forwardMenu"
  337.            position="after_start"
  338.            onpopupshowing="return BrowserForwardMenu(event);"
  339.            oncommand="gotoHistoryIndex(event);"
  340.            onclick="checkForMiddleClick(this, event);"/>
  341.     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
  342.  
  343.     <popup type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete"/>
  344.  
  345.     <popup id="toolbar-context-menu"
  346.            onpopupshowing="updateToolbarStates(this); onViewToolbarsPopupShowing(event);">
  347.       <menuseparator/>
  348.       <menuitem command="cmd_CustomizeToolbars"
  349.                 label="&viewCustomizeToolbar.label;"
  350.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  351.     </popup>
  352.  
  353.     <popup id="blockedPopupOptions" 
  354.            onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  355.       <menuitem observes="blockedPopupAllowSite"/>
  356.       <menuitem observes="blockedPopupEditSettings"/>
  357.       <menuitem observes="blockedPopupDontShowMessage"/>
  358.       <menuseparator observes="blockedPopupsSeparator"/>
  359.     </popup>
  360.  
  361.  
  362.     <popup id="contentAreaContextMenu"
  363.            onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  364.            onpopuphiding="if (event.target == this) { gContextMenu = null; }">
  365.       <menuitem id="spell-no-suggestions"
  366.                 disabled="true"
  367.                 label="&spellNoSuggestions.label;"/>
  368.       <menuitem id="spell-add-to-dictionary"
  369.                 label="&spellAddToDictionary.label;"
  370.                 accesskey="&spellAddToDictionary.accesskey;"
  371.                 oncommand="InlineSpellCheckerUI.addToDictionary();"/>
  372.       <menuseparator id="spell-suggestions-separator"/>
  373.       <menuitem id="context-openlink"
  374.                 label="&openLinkCmd.label;"
  375.                 accesskey="&openLinkCmd.accesskey;"
  376.                 oncommand="gContextMenu.openLink();"/>
  377.       <menuitem id="context-openlinkintab"
  378.                 label="&openLinkCmdInTab.label;"
  379.                 accesskey="&openLinkCmdInTab.accesskey;"
  380.                 oncommand="gContextMenu.openLinkInTab();"/>
  381.       <menuseparator id="context-sep-open"/>
  382.       <menuitem id="context-bookmarklink"
  383.                 label="&bookmarkLinkCmd.label;"
  384.                 accesskey="&bookmarkLinkCmd.accesskey;"
  385.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL,
  386.                                                       gContextMenu.linkText());"/>
  387.       <menuitem id="context-savelink"
  388.                 label="&saveLinkCmd.label;"
  389.                 accesskey="&saveLinkCmd.accesskey;"
  390.                 oncommand="gContextMenu.saveLink();"/>
  391.       <menuitem id="context-sendlink"
  392.                 label="&sendLinkCmd.label;"
  393.                 accesskey="&sendLinkCmd.accesskey;"
  394.                 oncommand="gContextMenu.sendLink();"/>
  395.       <menuitem id="context-copyemail"
  396.                 label="©EmailCmd.label;"
  397.                 accesskey="©EmailCmd.accesskey;"
  398.                 oncommand="gContextMenu.copyEmail();"/>
  399.       <menuitem id="context-copylink"
  400.                 label="©LinkCmd.label;"
  401.                 accesskey="©LinkCmd.accesskey;"
  402.                 command="cmd_copyLink"/>
  403.       <menuseparator id="context-sep-copylink"/>
  404.       <menuitem id="context-viewimage"
  405.                 label="&viewImageCmd.label;"
  406.                 accesskey="&viewImageCmd.accesskey;"
  407.                 oncommand="gContextMenu.viewImage(event);"
  408.                 onclick="checkForMiddleClick(this, event);"/>
  409.       <menuitem id="context-copyimage-contents"
  410.                 label="©ImageContentsCmd.label;"
  411.                 accesskey="©ImageContentsCmd.accesskey;"
  412.                 command="cmd_copyImageContents"/>
  413.       <menuitem id="context-copyimage"
  414.                 label="©ImageCmd.label;"
  415.                 accesskey="©ImageCmd.accesskey;"
  416.                 command="cmd_copyImageLocation"/>
  417.       <menuseparator id="context-sep-copyimage"/>
  418.       <menuitem id="context-saveimage"
  419.                 label="&saveImageCmd.label;"
  420.                 accesskey="&saveImageCmd.accesskey;"
  421.                 oncommand="gContextMenu.saveImage();"/>
  422.       <menuitem id="context-sendimage"  
  423.                 label="&sendImageCmd.label;" 
  424.                 accesskey="&sendImageCmd.accesskey;" 
  425.                 oncommand="gContextMenu.sendImage();"/>
  426.       <menuitem id="context-setDesktopBackground"
  427.                 label="&setDesktopBackgroundCmd.label;"
  428.                 accesskey="&setDesktopBackgroundCmd.accesskey;"
  429.                 oncommand="gContextMenu.setDesktopBackground();"/>
  430.       <menuitem id="context-blockimage"
  431.                 type="checkbox"
  432.                 accesskey="&blockImageCmd.accesskey;"
  433.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
  434.       <menuitem id="context-back"
  435.                 label="&backCmd.label;"
  436.                 accesskey="&backCmd.accesskey;"
  437.                 command="Browser:Back"/>
  438.       <menuitem id="context-forward"
  439.                 label="&forwardCmd.label;"
  440.                 accesskey="&forwardCmd.accesskey;"
  441.                 command="Browser:Forward"/>
  442.       <menuitem id="context-reload"
  443.                 label="&reloadCmd.label;"
  444.                 accesskey="&reloadCmd.accesskey;"
  445.                 command="Browser:Reload"/>
  446.       <menuitem id="context-stop"
  447.                 label="&stopCmd.label;"
  448.                 accesskey="&stopCmd.accesskey;"
  449.                 command="Browser:Stop"/>
  450.       <menuseparator id="context-sep-stop"/>
  451.       <menuitem id="context-bookmarkpage"
  452.                 label="&bookmarkPageCmd.label;"
  453.                 accesskey="&bookmarkPageCmd.accesskey;"
  454.                 oncommand="addBookmarkAs(document.getElementById('content'));"/>
  455.       <menuitem id="context-savepage"
  456.                 label="&savePageCmd.label;"
  457.                 accesskey="&savePageCmd.accesskey2;"
  458.                 oncommand="saveDocument(window.content.document);"/>
  459.       <menuitem id="context-sendpage"  
  460.                 label="&sendPageCmd.label;" 
  461.                 accesskey="&sendPageCmd.accesskey;" 
  462.                 command="Browser:SendLink"/>
  463.       <menuseparator id="context-sep-viewbgimage"/>  
  464.       <menuitem id="context-viewbgimage"
  465.                 label="&viewBGImageCmd.label;"
  466.                 accesskey="&viewBGImageCmd.accesskey;"
  467.                 oncommand="gContextMenu.viewBGImage(event);"
  468.                 onclick="checkForMiddleClick(this, event);"/>
  469.       <menuitem id="context-undo"
  470.                 label="&undoCmd.label;"
  471.                 accesskey="&undoCmd.accesskey;"
  472.                 command="cmd_undo"/>
  473.       <menuseparator id="context-sep-undo"/>
  474.       <menuitem id="context-cut"
  475.                 label="&cutCmd.label;"
  476.                 accesskey="&cutCmd.accesskey;"
  477.                 command="cmd_cut"/>
  478.       <menuitem id="context-copy"
  479.                 label="©Cmd.label;"
  480.                 accesskey="©Cmd.accesskey;"
  481.                 command="cmd_copy"/>
  482.       <menuitem id="context-paste"
  483.                 label="&pasteCmd.label;"
  484.                 accesskey="&pasteCmd.accesskey;"
  485.                 command="cmd_paste"/>
  486.       <menuitem id="context-delete"
  487.                 label="&deleteCmd.label;"
  488.                 accesskey="&deleteCmd.accesskey;"
  489.                 command="cmd_delete"/>
  490.       <menuseparator id="context-sep-paste"/>
  491.       <menuitem id="context-selectall"
  492.                 label="&selectAllCmd.label;"
  493.                 accesskey="&selectAllCmd.accesskey;"
  494.                 command="cmd_selectAll"/>      
  495.       <menuseparator id="context-sep-selectall"/>
  496.       <menuitem id="context-keywordfield"
  497.                 label="&keywordfield.label;"
  498.                 accesskey="&keywordfield.accesskey;"
  499.                 oncommand="AddKeywordForSearchField();"/>
  500.       <menuitem id="context-searchselect"
  501.                 accesskey="&search.accesskey;"
  502.                 oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
  503.       <menuseparator id="frame-sep"/>
  504.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  505.         <menupopup>
  506.           <menuitem label="&showOnlyThisFrameCmd.label;"
  507.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  508.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  509.           <menuitem label="&openFrameCmd.label;"
  510.                     accesskey="&openFrameCmd.accesskey;"
  511.                     oncommand="gContextMenu.openFrame();"/>
  512.           <menuitem label="&openFrameCmdInTab.label;"
  513.                     accesskey="&openFrameCmdInTab.accesskey;"
  514.                     oncommand="gContextMenu.openFrameInTab();"/>
  515.           <menuseparator/>
  516.           <menuitem label="&reloadFrameCmd.label;"
  517.                     accesskey="&reloadFrameCmd.accesskey;"
  518.                     oncommand="gContextMenu.reloadFrame();"/>
  519.           <menuseparator/>
  520.           <menuitem label="&bookmarkFrameCmd.label;"
  521.                     accesskey="&bookmarkFrameCmd.accesskey;"
  522.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  523.           <menuitem label="&saveFrameCmd.label;"
  524.                     accesskey="&saveFrameCmd.accesskey;"
  525.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  526.           <menuseparator/>
  527.           <menuitem label="&viewFrameSourceCmd.label;"
  528.                     accesskey="&viewFrameSourceCmd.accesskey;"
  529.                     oncommand="gContextMenu.viewFrameSource();"/>
  530.           <menuitem label="&viewFrameInfoCmd.label;"
  531.                     accesskey="&viewFrameInfoCmd.accesskey;"
  532.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  533.         </menupopup>
  534.       </menu>
  535.       <menuseparator id="context-sep-properties"/>
  536.       <menuitem id="context-viewpartialsource-selection"
  537.                 label="&viewPartialSourceForSelectionCmd.label;"
  538.                 accesskey="&viewPartialSourceCmd.accesskey;"
  539.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  540.       <menuitem id="context-viewpartialsource-mathml"
  541.                 label="&viewPartialSourceForMathMLCmd.label;"
  542.                 accesskey="&viewPartialSourceCmd.accesskey;"
  543.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  544.       <menuitem id="context-viewsource"
  545.                 label="&viewPageSourceCmd.label;"
  546.                 accesskey="&viewPageSourceCmd.accesskey;"
  547.                 oncommand="BrowserViewSourceOfDocument(content.document);"/>
  548.       <menuitem id="context-viewinfo"
  549.                 label="&viewPageInfoCmd.label;"
  550.                 accesskey="&viewPageInfoCmd.accesskey;"
  551.                 oncommand="gContextMenu.viewInfo();"/>
  552.       <menuitem id="context-metadata"
  553.                 label="&metadataCmd.label;"
  554.                 accesskey="&metadataCmd.accesskey;"
  555.                 oncommand="gContextMenu.showMetadata();"/>
  556.       <menuseparator id="spell-separator"/>
  557.       <menuitem id="spell-check-enabled"
  558.                 label="&spellEnable.label;"
  559.                 type="checkbox"
  560.                 accesskey="&spellEnable.accesskey;"
  561.                 oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
  562.       <menuitem id="spell-add-dictionaries-main"
  563.                 label="&spellAddDictionaries.label;"
  564.                 accesskey="&spellAddDictionaries.accesskey;"
  565.                 oncommand="gContextMenu.addDictionaries();"/>
  566.       <menu id="spell-dictionaries"
  567.             label="&spellDictionaries.label;"
  568.             accesskey="&spellDictionaries.accesskey;">
  569.           <menupopup id="spell-dictionaries-menu">
  570.               <menuseparator id="spell-language-separator"/>
  571.               <menuitem id="spell-add-dictionaries"
  572.                         label="&spellAddDictionaries.label;"
  573.                         accesskey="&spellAddDictionaries.accesskey;"
  574.                         oncommand="gContextMenu.addDictionaries();"/>
  575.           </menupopup>
  576.       </menu>
  577.       <menuseparator hidden="true" id="context-sep-bidi"/>
  578.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  579.                 label="&bidiSwitchTextDirectionItem.label;"
  580.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  581.                 command="cmd_switchTextDirection"/>
  582.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  583.                 label="&bidiSwitchPageDirectionItem.label;"
  584.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  585.                 oncommand="SwitchDocumentDirection(window.content);"/>
  586.     </popup>
  587.  
  588.   </popupset>
  589.  
  590.   <!-- Total hack. Used by the Go menu to build up items. -->
  591.   <tree id="hiddenHistoryTree" hidden="true" collapsed="true" datasources="rdf:null"
  592.         flags="dont-build-content"
  593.         hidecolumnpicker="true">
  594.     <template>
  595.       <rule>
  596.         <treechildren>
  597.           <treeitem uri="rdf:*" rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  598.             <treerow>
  599.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  600.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Date" hidden="true"/>
  601.             </treerow>
  602.           </treeitem>
  603.         </treechildren>
  604.       </rule>
  605.     </template>
  606.     <treecols id="hiddenHistoryTreeCols">
  607.       <treecol flex="1" id="Name"
  608.                hideheader="true" primary="true"/>
  609.       <treecol id="Date" hidden="true" hideheader="true"
  610.                sort="rdf:http://home.netscape.com/NC-rdf#Date" sortActive="true" sortDirection="descending"/>
  611.     </treecols>
  612.   </tree>
  613.  
  614.   <!-- bookmarks context menu -->
  615.   <popupset>
  616.     <menupopup id="bookmarks-context-menu" 
  617.                onpopupshowing="return BookmarksMenu.createContextMenu(event);"
  618.                onpopuphidden ="BookmarksMenu.destroyContextMenu(event);"/>
  619.   </popupset>
  620.  
  621.   <!-- bookmarks toolbar tooltip -->
  622.   <tooltip id="btTooltip" noautohide="true" 
  623.            onpopupshowing="return BookmarksToolbar.fillInBTTooltip(document.tooltipNode)">
  624.     <vbox id="btTooltipTextBox" flex="1">  
  625.       <label id="btTitleText" />
  626.       <label id="btUrlText" />
  627.     </vbox>
  628.   </tooltip>
  629.  
  630.   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons">
  631.     <!-- Menu -->
  632.     <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
  633.              defaultset="menubar-items,spring,throbber-box"
  634.              mode="icons" context="toolbar-context-menu">
  635.       <toolbaritem id="menubar-items" align="center">
  636.  
  637.        <menubar id="main-menubar" statusbar="statusbar-display"
  638.                 style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
  639.             <menu id="file-menu" label="&fileMenu.label;"
  640.                   accesskey="&fileMenu.accesskey;">
  641.               <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
  642.                 <menuitem id="menu_newNavigator"
  643.                           label="&newNavigatorCmd.label;"
  644.                           accesskey="&newNavigatorCmd.accesskey;"
  645.                           key="key_newNavigator"
  646.                           command="cmd_newNavigator"/>
  647.                 <menuitem id="menu_newNavigatorTab" command="cmd_newNavigatorTab" key="key_newNavigatorTab"
  648.                           label="&tabCmd.label;" accesskey="&tabCmd.accesskey;"/>
  649.                 <menuitem id="menu_openLocation" label="&openLocationCmd.label;" accesskey="&openLocationCmd.accesskey;" key="focusURLBar" command="Browser:OpenLocation"/>
  650.                 <menuitem id="menu_openFile" label="&openFileCmd.label;" accesskey="&openFileCmd.accesskey;" key="openFileKb" command="Browser:OpenFile"/>
  651.                 <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;"/>
  652.                 <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
  653.                 <menuseparator/>
  654.                 <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
  655.                 <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" command="Browser:SaveFrame" hidden="true"/>
  656.                 <menuitem id="menu_sendLink"  label="&sendPageCmd.label;"  accesskey="&sendPageCmd.accesskey;"  command="Browser:SendLink"/>
  657.                 <menuseparator/>
  658.                 <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_pageSetup"/>
  659.                 <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="cmd_printPreview"/>
  660.                 <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="cmd_print"/>
  661.                 <menuseparator/>
  662.                 <menuitem label="&import.label;" accesskey="&import.accesskey;" oncommand="BrowserImport();"/>
  663.                 <menuseparator/>
  664.                 <menuitem id="goOfflineMenuitem"
  665.                           label="&goOfflineCmd.label;" accesskey="&goOfflineCmd.accesskey;" 
  666.                           type="checkbox" oncommand="BrowserOffline.toggleOfflineStatus();"/>
  667.                 <menuitem id="menu_FileQuitItem" 
  668.         label="&quitApplicationCmdWin.label;"
  669.         accesskey="&quitApplicationCmdWin.accesskey;"
  670.         oncommand="goQuitApplication();"/>
  671.               </menupopup>
  672.             </menu>
  673.   
  674.             <menu id="edit-menu" label="&editMenu.label;"
  675.                   accesskey="&editMenu.accesskey;">
  676.               <menupopup id="menu_EditPopup">
  677.                 <menuitem label="&undoCmd.label;"
  678.                           key="key_undo"
  679.                           accesskey="&undoCmd.accesskey;"
  680.                           command="cmd_undo"/>
  681.                 <menuitem label="&redoCmd.label;"
  682.                           key="key_redo"
  683.                           accesskey="&redoCmd.accesskey;"
  684.                           command="cmd_redo"/>
  685.                 <menuseparator/>
  686.                 <menuitem label="&cutCmd.label;"
  687.                           key="key_cut"
  688.                           accesskey="&cutCmd.accesskey;"
  689.                           command="cmd_cut"/>
  690.                 <menuitem label="©Cmd.label;"
  691.                           key="key_copy"
  692.                           accesskey="©Cmd.accesskey;"
  693.                           command="cmd_copy"/>
  694.                 <menuitem label="&pasteCmd.label;"
  695.                           key="key_paste"
  696.                           accesskey="&pasteCmd.accesskey;"
  697.                           command="cmd_paste"/>
  698.                 <menuitem label="&deleteCmd.label;"
  699.                           key="key_delete"
  700.                           accesskey="&deleteCmd.accesskey;"
  701.                           command="cmd_delete"/>
  702.                 <menuseparator/>
  703.                 <menuitem label="&selectAllCmd.label;"
  704.                           key="key_selectAll"
  705.                           accesskey="&selectAllCmd.accesskey;"
  706.                           command="cmd_selectAll"/>
  707.                 <menuseparator/>
  708.                 <menuitem id="menu_find" label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
  709.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"/>
  710.                 <menuseparator hidden="true" id="textfieldDirection-separator"/>
  711.                 <menuitem id="textfieldDirection-swap"
  712.                           command="cmd_switchTextDirection"
  713.                           key="key_switchTextDirection"
  714.                           label="&bidiSwitchTextDirectionItem.label;"
  715.                           accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  716.                           hidden="true"/>
  717.               </menupopup>
  718.             </menu>
  719.   
  720.             <menu id="view-menu" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  721.               <menupopup id="menu_viewPopup">
  722.                 <menu id="viewToolbarsMenu" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  723.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  724.                   <menupopup onpopupshowing="updateToolbarStates(this);"> 
  725.                     <menuseparator/>
  726.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  727.                                 command="cmd_CustomizeToolbars"/>             
  728.                   </menupopup>
  729.                 </menu>
  730.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" command="cmd_toggleTaskbar" checked="true" />
  731.                 <menu id="viewSidebarMenuMenu"
  732.                       label="&viewSidebarMenu.label;"
  733.                       accesskey="&viewSidebarMenu.accesskey;">
  734.                   <menupopup id="viewSidebarMenu">
  735.                     <menuitem id="favoritesViewSidebarMenuItem" key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" label="&bookmarksButton.label;" accesskey="&bookmarksSidebarCmd.accesskey;"/>
  736.                     <menuitem id="historyViewSidebarMenuItem" key="key_gotoHistory" observes="viewHistorySidebar" label="&historyButton.label;" accesskey="&historySidebarCmd.accesskey;"/>
  737.                   </menupopup>
  738.                 </menu>
  739.                 <menuseparator/>
  740.                 <menuitem label="&stopCmd.label;"
  741.                           accesskey="&stopCmd.accesskey;"
  742.                           command="Browser:Stop"
  743.                           key="key_stop"/>
  744.                 <menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" key="key_reload"/>
  745.                 <menuseparator/>
  746.                 <menu id="viewTextZoomMenu" label="&textSize.label;" accesskey="&textSize.accesskey;" observes="isImage">
  747.                   <menupopup>                    
  748.                     <menuitem key="key_textZoomEnlarge" label="&textZoomEnlargeCmd.label;" accesskey="&textZoomEnlargeCmd.accesskey;"
  749.                               command="cmd_textZoomEnlarge"/>
  750.                     <menuitem key="key_textZoomReduce"  label="&textZoomReduceCmd.label;"  accesskey="&textZoomReduceCmd.accesskey;"
  751.                               command="cmd_textZoomReduce"/>
  752.                     <menuseparator/>
  753.                     <menuitem key="key_textZoomReset" label="&textZoomResetCmd.label;" accesskey="&textZoomResetCmd.accesskey;"
  754.                               command="cmd_textZoomReset"/>
  755.                   </menupopup>
  756.                 </menu>
  757.                 <menu id="pageStyleMenu" label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;" observes="isImage">
  758.                   <menupopup onpopupshowing="stylesheetFillPopup(this);"
  759.                              oncommand="stylesheetSwitchAll(window.content, event.target.getAttribute('data')); setStyleDisabled(false);">
  760.                     <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
  761.                               oncommand="setStyleDisabled(true); event.stopPropagation();" type="radio"/>
  762.                     <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
  763.                     <menuseparator/>
  764.                   </menupopup>
  765.                 </menu>
  766.                 <menu id="charsetMenu"
  767.                       label="&charsetMenu.label;"
  768.                       accesskey="&charsetMenu.accesskey;"
  769.                       datasources="rdf:charset-menu"
  770.                       ref="NC:BrowserCharsetMenuRoot"
  771.                       oncommand="MultiplexHandler(event)"
  772.                       onpopupshowing="CreateMenu('browser');UpdateMenus(event)"
  773.                       onpopupshown="CreateMenu('more-menu');"
  774.                       observes="isImage">
  775.                     <template>
  776.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  777.                             <menupopup>
  778.                             <menuseparator uri="..." />
  779.                             </menupopup>
  780.                         </rule>
  781.                         <rule>
  782.                             <menupopup>
  783.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  784.                             </menupopup>
  785.                         </rule>
  786.                     </template>
  787.       
  788.                     <menupopup>
  789.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  790.                         <template>
  791.                             <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
  792.                                 <menupopup>
  793.                                 <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  794.                                 </menupopup>
  795.                             </rule>
  796.                         </template>
  797.                         <menupopup>
  798.                         </menupopup>
  799.                     </menu>
  800.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  801.                         <template>
  802.                             <rule>
  803.                                 <menupopup>
  804.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  805.                                 </menupopup>
  806.                             </rule>
  807.                         </template>
  808.                         <menupopup>
  809.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  810.                                 <template>
  811.                                     <rule>
  812.                                         <menupopup>
  813.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  814.                                         </menupopup>
  815.                                     </rule>
  816.                                 </template>
  817.                                 <menupopup>
  818.                                 </menupopup>
  819.                             </menu>
  820.                             <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  821.                                 <template>
  822.                                     <rule>
  823.                                         <menupopup>
  824.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  825.                                         </menupopup>
  826.                                     </rule>
  827.                                 </template>
  828.                                 <menupopup>
  829.                                 </menupopup>
  830.                             </menu>
  831.                             <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  832.                                 <template>
  833.                                     <rule>
  834.                                         <menupopup>
  835.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  836.                                         </menupopup>
  837.                                     </rule>
  838.                                 </template>
  839.                                 <menupopup>
  840.                                 </menupopup>
  841.                             </menu>
  842.                             <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  843.                                 <template>
  844.                                     <rule>
  845.                                         <menupopup>
  846.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  847.                                         </menupopup>
  848.                                     </rule>
  849.                                 </template>
  850.                                 <menupopup>
  851.                                 </menupopup>
  852.                             </menu>
  853.                             <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  854.                                 <template>
  855.                                     <rule>
  856.                                         <menupopup>
  857.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  858.                                         </menupopup>
  859.                                     </rule>
  860.                                 </template>
  861.                                 <menupopup>
  862.                                 </menupopup>
  863.                             </menu>
  864.                             <menu label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  865.                                 <template>
  866.                                     <rule>
  867.                                         <menupopup>
  868.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  869.                                         </menupopup>
  870.                                     </rule>
  871.                                 </template>
  872.                                 <menupopup>
  873.                                 </menupopup>
  874.                             </menu>
  875.                             <menuseparator />
  876.                         </menupopup>
  877.                     </menu>
  878.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  879.                     </menupopup>
  880.                 </menu>
  881.                 <menuseparator/>
  882.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
  883.                 <menuitem accesskey="&fullScreenCmd.accesskey;"
  884.                           label="&fullScreenCmd.label;" key="key_fullScreen"
  885.                           id="fullScreenItem"
  886.                           type="checkbox"
  887.                           command="View:FullScreen"/>
  888.                 <menuseparator hidden="true" id="documentDirection-separator"/>
  889.                 <menuitem hidden="true" id="documentDirection-swap" 
  890.                           label="&bidiSwitchPageDirectionItem.label;"
  891.                           accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  892.                           oncommand="SwitchDocumentDirection(window.content)"/>
  893.               </menupopup>
  894.             </menu>
  895.  
  896.             <menu id="go-menu" label="&historyMenu.label;" accesskey="&historyMenu.accesskey;" 
  897.                   oncommand="var url = event.target.getAttribute('statustext'); if (url) openUILink(url, event, false, true);"
  898.                   onclick="checkForMiddleClick(this, event);">
  899.  
  900.               <menupopup id="goPopup" onpopupshowing="updateGoMenu(event, this);" onpopuphiding="onGoMenuHidden(event);">
  901.                 <menuitem label="&backCmd.label;"
  902.                           key="goBackKb"
  903.                           oncommand="BrowserBack(event, true)"
  904.                           onclick="checkForMiddleClick(this, event);">
  905.                   <observes element="Browser:Back" attribute="disabled" />
  906.                 </menuitem>
  907.                 <menuitem label="&forwardCmd.label;" 
  908.                           key="goForwardKb"
  909.                           oncommand="BrowserForward(event, true)"
  910.                           onclick="checkForMiddleClick(this, event);">
  911.                   <observes element="Browser:Forward" attribute="disabled" />
  912.                 </menuitem>
  913.  
  914.                 <menuitem label="&goHomeCmd.label;"
  915.                           command="Browser:Home"
  916.                           key="goHome"/>
  917.                 <menuseparator id="startHistorySeparator"/>
  918.                 <menuseparator hidden="true" id="endHistorySeparator"/>
  919.                 <menu id="historyUndoMenu" label="&historyUndoMenu.label;" disabled="true">
  920.                   <menupopup id="historyUndoPopup" onpopupshowing="HistoryMenu.populateUndoSubmenu();"/>
  921.                 </menu>
  922.                 <menuseparator id="endUndoSeparator"/>
  923.                 <menuitem id="historyMenuItem" observes="viewHistorySidebar" label="&historyShowSidebarCmd.label;"
  924.                           key="key_gotoHistory"/>
  925.               </menupopup>
  926.             </menu>
  927.  
  928.             <menu id="bookmarks-menu" label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
  929.                   datasources="rdf:flock-favorites rdf:files" 
  930.                   ref="http://flock.com/rdf#BookmarksRoot" flags="dont-test-empty"
  931.                   template='bookmarks-template'
  932.                   onpopupshowing="UpdateBookmarkAllTabsMenuitem(); BookmarksMenu.onShowMenu(event.target)"
  933.                   onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  934.                   oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
  935.                   onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  936.                   ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  937.                   ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  938.                   ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  939.                   ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  940.                   ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.stopPropagation()">
  941.               <menupopup id="menu_BookmarksPopup" contextmenu='bookmarks-context-menu'>
  942.                 <menuitem key="addBookmarkAsKb"
  943.                           label="&addCurPageAsCmd.label;"
  944.                           command="Browser:AddBookmarkAs"/>
  945.                 <menuitem id="subscribeToPageMenuitem"
  946.                           label="&subscribeToPageMenuitem.label;"
  947.                           oncommand="return FeedHandler.subscribeToFeed(null, event);"
  948.                           onclick="checkForMiddleClick(this, event);"
  949.                           disabled="true"/>
  950.                 <menu id="subscribeToPageMenupopup"
  951.                       label="&subscribeToPageMenupopup.label;"
  952.                       hidden="true">
  953.                   <menupopup id="subscribeToPageSubmenuMenupopup" 
  954.                              onpopupshowing="return FeedHandler.buildFeedList(event.target);" 
  955.                              oncommand="return FeedHandler.subscribeToFeed(null, event);"
  956.                              onclick="checkForMiddleClick(this, event);"/>
  957.                 </menu>
  958.                 <menuitem id="bookmarkAllCmd"
  959.                           key="bookmarkAllTabsKb"
  960.                           label="&bookmarkAllCmd.label;"
  961.                           command="Browser:BookmarkAllTabs"/>
  962.                 <menuitem key="manBookmarkKb" 
  963.                           label="&manBookmarksCmd.label;"
  964.                           oncommand="toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');"/>
  965.  
  966.                     <menuitem id="favoritesMenuItem" key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" label="&historyShowSidebarCmd.label;" accesskey="&bookmarksSidebarCmd.accesskey;"/>
  967.                       <menuseparator/>
  968.               </menupopup>
  969.             </menu>
  970.         
  971.             <menu id="tools-menu" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
  972.               <menupopup id="menu_ToolsPopup">
  973.               <menuitem label="&search.label;" accesskey="&search.accesskey;" 
  974.                         key="key_search" command="Tools:Search"/>
  975.               <menuseparator id="browserToolsSeparator"/>
  976.               <menuitem label="&downloads.label;" accesskey="&downloads.accesskey;"
  977.                         id="downloadManagerMenuitem"
  978.                         key="key_openDownloads" command="Tools:Downloads"/>
  979.               <menuitem label="&addons.label;" accesskey="&addons.accesskey;" 
  980.                         command="Tools:Addons"/>
  981.               <menuseparator id="devToolsSeparator"/>
  982.               <menuitem id="javascriptConsole" 
  983.                         label="&errorConsoleCmd.label;" accesskey="&errorConsoleCmd.accesskey;" 
  984.                         oncommand="toJavaScriptConsole();"/>
  985.               <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"   
  986.                         command="View:PageInfo"/>
  987.               <menuseparator id="sanitizeSeparator"/>
  988.               <menuitem id="sanitizeItem"
  989.                         accesskey="&clearPrivateDataCmd.accesskey;"
  990.                         label="&clearPrivateDataCmd.label;"
  991.                         key="key_sanitize" command="Tools:Sanitize"/>
  992.               <menuseparator id="prefSep"/>
  993.               <menuitem id="menu_preferences"
  994.                         label="&preferencesCmd.label;"
  995.                         accesskey="&preferencesCmd.accesskey;"
  996.                         oncommand="openPreferences();"/>
  997.               </menupopup>
  998.             </menu>
  999.     
  1000.           <menu id="helpMenu" />
  1001.         </menubar>
  1002.  
  1003.   <template id='bookmarks-template' xmlns:nc="http://home.netscape.com/NC-rdf#">
  1004.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  1005.       <toolbarseparator uri="rdf:*"
  1006.                         rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
  1007.     </rule>
  1008.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  1009.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  1010.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  1011.                      label="rdf:http://home.netscape.com/NC-rdf#Name"
  1012.                      livemark="true"
  1013.                      chromedir="&locale.dir;">
  1014.         <menupopup contextmenu="bookmarks-context-menu"/>
  1015.       </toolbarbutton>
  1016.     </rule>
  1017.     <rule parent="hbox" iscontainer="true">
  1018.       <toolbarbutton type="menu" class="bookmark-item" uri="rdf:*" editable="true"
  1019.                      rdf:type="http://home.netscape.com/NC-rdf#Folder"
  1020.                      label="rdf:http://home.netscape.com/NC-rdf#Name">
  1021.         <menupopup contextmenu="bookmarks-context-menu"/>
  1022.       </toolbarbutton>
  1023.     </rule>
  1024.     <rule parent="hbox" rdf:type="http://home.netscape.com/NC-rdf#MicsumBookmark">
  1025.       <toolbarbutton class="bookmark-item-microsummarized bookmark-item"
  1026.                      uri="rdf:*" editable="true" 
  1027.                      status="rdf:http://home.netscape.com/WEB-rdf#status"
  1028.                      rdf:type="http://flock.com/rdf#Favorite"
  1029.                      image="rdf:http://flock.com/rdf#favicon"
  1030.                      statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  1031.                      tooltip="btTooltip"
  1032.                      label="rdf:http://home.netscape.com/NC-rdf#GeneratedTitle"/>
  1033.     </rule>
  1034.     <rule parent="hbox">
  1035.       <toolbarbutton class="bookmark-item" uri="rdf:*" editable="true" 
  1036.                      status="rdf:http://home.netscape.com/WEB-rdf#status"
  1037.                      rdf:type="http://flock.com/rdf#Favorite"
  1038.                      image="rdf:http://flock.com/rdf#favicon"
  1039.                      statustext="rdf:http://home.netscape.com/NC-rdf#URL"
  1040.                      tooltip="btTooltip"
  1041.                      label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  1042.     </rule>
  1043.     <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  1044.       <menupopup> 
  1045.         <menuseparator uri="rdf:*" />
  1046.       </menupopup>
  1047.     </rule>
  1048.     <rule rdf:type="http://home.netscape.com/NC-rdf#Livemark">
  1049.       <menupopup>
  1050.         <menu class="menu-iconic bookmark-item" uri="rdf:*"
  1051.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  1052.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
  1053.               livemark="true">
  1054.           <menupopup contextmenu="bookmarks-context-menu"/>
  1055.         </menu>
  1056.       </menupopup>
  1057.     </rule>
  1058.     <rule fl:flockType="feeditem">
  1059.     </rule>
  1060.     <rule iscontainer="true">
  1061.       <menupopup>
  1062.         <menu class="menu-iconic bookmark-item" uri="rdf:*"
  1063.               label="rdf:http://home.netscape.com/NC-rdf#Name"
  1064.               type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
  1065.         <menupopup contextmenu="bookmarks-context-menu"/>
  1066.         </menu>
  1067.       </menupopup>
  1068.     </rule>
  1069.     <rule rdf:type="http://home.netscape.com/NC-rdf#MicsumBookmark">
  1070.       <menupopup>
  1071.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  1072.                   label="rdf:http://home.netscape.com/NC-rdf#GeneratedTitle" 
  1073.                   image="rdf:http://flock.com/rdf#favicon"
  1074.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  1075.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"/>
  1076.       </menupopup>
  1077.     </rule>
  1078.     <rule>
  1079.       <menupopup>
  1080.         <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
  1081.                   label="rdf:http://home.netscape.com/NC-rdf#Name" 
  1082.                   image="rdf:http://flock.com/rdf#favicon"
  1083.                   status="rdf:http://home.netscape.com/WEB-rdf#status"
  1084.                   statustext="rdf:http://home.netscape.com/NC-rdf#URL"/>
  1085.       </menupopup>
  1086.     </rule>
  1087.   </template>
  1088.  
  1089.       </toolbaritem>
  1090.     </toolbar>
  1091.  
  1092.     <toolbarpalette id="BrowserToolbarPalette">
  1093.       <toolbarbutton id="back-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1094.                      chromedir="&locale.dir;"
  1095.                      label="&backCmd.label;"
  1096.                      oncommand="BrowserBack(event)"
  1097.                      onclick="checkForMiddleClick(this, event);"
  1098.                      context="backMenu"
  1099.                      tooltiptext="&backButton.tooltip;">
  1100.         <observes element="Browser:Back" attribute="disabled"/>
  1101.         <menupopup context=""
  1102.                    onpopupshowing="BrowserBackMenu(event);"
  1103.                    oncommand="gotoHistoryIndex(event); event.stopPropagation();"
  1104.                    onclick="checkForMiddleClick(this, event);"/>
  1105.       </toolbarbutton>
  1106.     
  1107.       <toolbarbutton id="forward-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1108.                      chromedir="&locale.dir;"
  1109.                      label="&forwardCmd.label;"
  1110.                      oncommand="BrowserForward(event)"
  1111.                      onclick="checkForMiddleClick(this, event);"
  1112.                      context="forwardMenu"
  1113.                      tooltiptext="&forwardButton.tooltip;">
  1114.         <observes element="Browser:Forward" attribute="disabled"/>
  1115.         <menupopup context=""
  1116.                    onpopupshowing="BrowserForwardMenu(event);"
  1117.                    oncommand="gotoHistoryIndex(event); event.stopPropagation()"
  1118.                    onclick="checkForMiddleClick(this, event);"/>
  1119.       </toolbarbutton>
  1120.     
  1121.       <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1122.                      label="&reloadCmd.label;"
  1123.                      command="Browser:Reload"
  1124.                      tooltiptext="&reloadButton.tooltip;"/>
  1125.                     
  1126.       <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1127.                      label="&stopCmd.label;"
  1128.                      command="Browser:Stop"
  1129.                      tooltiptext="&stopButton.tooltip;"/>
  1130.  
  1131.       <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1132.                      label="&homeButton.label;"
  1133.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  1134.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  1135.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  1136.                      onclick="BrowserHomeClick(event);"/>
  1137.  
  1138.       <toolbaritem id="urlbar-container" align="center" flex="400"
  1139.                    title="&locationItem.title;" class="chromeclass-location">
  1140.         <hbox id="urlbar-button-box" flex="1">
  1141.             <textbox id="urlbar" flex="1"
  1142.                      chromedir="&locale.dir;"
  1143.                      type="autocomplete"
  1144.                      autocompletesearch="history" 
  1145.                      autocompletepopup="PopupAutoComplete"
  1146.                      completeselectedindex="true"
  1147.                      tabscrolling="true"
  1148.                      showcommentcolumn="true"
  1149.                      enablehistory="true"
  1150.                      oninput="gBrowser.userTypedValue = this.value"
  1151.                      ontextentered="return handleURLBarCommand(param);"
  1152.                      ontextreverted="return handleURLBarRevert();">
  1153.               <deck id="page-proxy-deck" onclick="PageProxyClickHandler(event);">
  1154.                 <image id="page-proxy-button"
  1155.                         ondraggesture="PageProxyDragGesture(event);"
  1156.                         tooltiptext="&proxyIcon.tooltip;"/>
  1157.                 <image id="page-proxy-favicon" validate="never"
  1158.                         ondraggesture="PageProxyDragGesture(event);"
  1159.                         onload="this.parentNode.selectedIndex = 1;
  1160.                                 event.stopPropagation();"
  1161.                         onerror="gBrowser.addToMissedIconCache(this.src);
  1162.                                  this.removeAttribute('src');
  1163.                                  this.parentNode.selectedIndex = 0;"
  1164.                         tooltiptext="&proxyIcon.tooltip;"/>
  1165.               </deck>
  1166.               <hbox id="urlbar-icons">
  1167.                 <button type="menu"
  1168.                         style="-moz-user-focus: none"
  1169.                         class="plain"
  1170.                         id="feed-button"
  1171.                         chromedir="&locale.dir;"
  1172.                         onclick="return FeedHandler.onFeedButtonClick(event);">
  1173.                   <menupopup position="after_end"
  1174.                              onpopupshowing="return FeedHandler.buildFeedList(this);"
  1175.                              oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1176.                              onclick="checkForMiddleClick(this, event);"/>
  1177.                 </button>
  1178.                 <image id="lock-icon" onclick="if (event.button == 0) displaySecurityInfo(); event.stopPropagation();"/>
  1179.                 <image id="safebrowsing-urlbar-icon" tooltiptext="&safeb.urlbaricon.tooltip;"
  1180.                        level="safe"
  1181.                        onclick="goDoCommand('safebrowsing-show-warning')" />
  1182.               </hbox>
  1183.             </textbox>
  1184.             <stack id="go-button-stack">
  1185.               <vbox>
  1186.                 <!-- These image segments allow the button to stretch nicely
  1187.                      in larger urlbars. -->
  1188.                 <image id="go-button-top"
  1189.                        class="go-button-background"
  1190.                        chromedir="&locale.dir;" />
  1191.                 <image flex="1"
  1192.                        id="go-button-mid-top"
  1193.                        class="go-button-background"
  1194.                        chromedir="&locale.dir;" />
  1195.                 <image flex="1"
  1196.                        id="go-button-mid-bottom"
  1197.                       class="go-button-background"
  1198.                       chromedir="&locale.dir;" />
  1199.                 <image id="go-button-bottom"
  1200.                        class="go-button-background"
  1201.                        chromedir="&locale.dir;" />
  1202.               </vbox>
  1203.                             
  1204.           </stack>
  1205.         </hbox>
  1206.       </toolbaritem>
  1207.       <toolbarbutton id="go-button"
  1208.                       flex="1"
  1209.                       chromedir="&locale.dir;"
  1210.                       label="&goEndCap.label;"
  1211.                       onclick="handleURLBarCommand(event);"
  1212.                       ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
  1213.                       ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
  1214.                       ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"
  1215.                       tooltiptext="&goEndCap.tooltip;"/>
  1216.  
  1217.       <toolbaritem id="search-container" title="&searchItem.title;"
  1218.                     chromedir="&locale.dir;"
  1219.                     align="center" class="chromeclass-toolbar-additional"
  1220.                     flex="100">
  1221.         <searchbar id="searchbar" flex="1" chromedir="&locale.dir;"/>
  1222.       </toolbaritem>
  1223.       
  1224.       <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1225.                      label="&printButton.label;" command="cmd_print"
  1226.                      tooltiptext="&printButton.tooltip;"/>
  1227.  
  1228.       <toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center">
  1229.         <button id="navigator-throbber" disabled="true"/>
  1230.       </toolbaritem>
  1231.  
  1232.       <toolbaritem id="personal-bookmarks" title="&bookmarksItem.title;" flex="1"
  1233.                    class="chromeclass-directories">
  1234.         <stack id="bookmarks-stack" flex="1" style="min-width:0px; width:0px;"
  1235.                onpopupshowing="BookmarksToolbar.setOpenedMenu(event);"
  1236.                onpopuphidden="BookmarksToolbar.unsetOpenedMenu(event);">
  1237.           <hbox id="bookmarks-ptf" class="bookmarks-toolbar-items" contextmenu="bookmarks-context-menu"
  1238.                 flex="1" style="min-width:0px; width:0px;padding-left: 3px;" 
  1239.                 datasources="rdf:flock-favorites rdf:files"
  1240.                 template="bookmarks-template" flags="dont-test-empty"
  1241.                 rdf:type="http://home.netscape.com/NC-rdf#Folder"
  1242.                 onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  1243.                 onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  1244.                 oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
  1245.                 onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  1246.                 ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  1247.                 ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  1248.                 ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  1249.                 ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  1250.                 ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.stopPropagation()">
  1251.           </hbox>
  1252.           <hbox class="bookmarks-toolbar-overflow-items" mousethrough="always">
  1253.             <hbox mousethrough="always" id="overflow-padder"/>
  1254.               <toolbarbutton id="bookmarks-chevron" type="menu" class="chevron"
  1255.                              chromedir="&locale.dir;"
  1256.                              mousethrough="never" collapsed="true" 
  1257.                              datasources="rdf:flock-favorites rdf:files"
  1258.                              template="bookmarks-template" flags="dont-test-empty"
  1259.                              onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
  1260.                              onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
  1261.                              oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
  1262.                              onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
  1263.                              ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
  1264.                              ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  1265.                              ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  1266.                              ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.stopPropagation()"
  1267.                              ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.stopPropagation()">
  1268.                 <menupopup onpopupshowing="if (event.target == this) BookmarksToolbar.updateOverflowMenu(this);"
  1269.                            contextmenu="bookmarks-context-menu"
  1270.                            />
  1271.               </toolbarbutton>
  1272.             </hbox>
  1273.             <toolbarbutton class="bookmark-item bookmarks-toolbar-customize" mousethrough="never"
  1274.                            label="&bookmarksToolbarItem.label;"/>
  1275.           </stack>
  1276.           <toolbar id="FavoriteCollection" class="chromeclass-directories" />
  1277.         </toolbaritem>
  1278.  
  1279.         <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1280.                        observes="Tools:Downloads"
  1281.                        ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1282.                        ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1283.                        ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1284.                        ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1285.                        label="&downloads.label;"
  1286.                        tooltiptext="&downloads.tooltip;"/>
  1287.  
  1288.         <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1289.                        observes="viewHistorySidebar" label="&historyButton.label;"
  1290.                        tooltiptext="&historyButton.tooltip;"/>
  1291.  
  1292.         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional statefultooltip"
  1293.                        observes="viewBookmarksSidebar"
  1294.                        tooltiptext="&bookmarksButton.tooltip;"
  1295.                        ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
  1296.                        ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
  1297.                        ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
  1298.  
  1299.         <toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1300.                        label="&tabCmd.label;"
  1301.                        command="cmd_newNavigatorTab"
  1302.                        tooltiptext="&newTabButton.tooltip;"
  1303.                        ondragover="nsDragAndDrop.dragOver(event, newTabButtonObserver);"
  1304.                        ondragdrop="nsDragAndDrop.drop(event, newTabButtonObserver);"
  1305.                        ondragexit="nsDragAndDrop.dragExit(event, newTabButtonObserver);"/>         
  1306.  
  1307.         <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1308.                        label="&newNavigatorCmd.label;"
  1309.                        command="key_newNavigator"
  1310.                        tooltiptext="&newWindowButton.tooltip;"
  1311.                        ondragover="nsDragAndDrop.dragOver(event, newWindowButtonObserver);"
  1312.                        ondragdrop="nsDragAndDrop.drop(event, newWindowButtonObserver);"
  1313.                        ondragexit="nsDragAndDrop.dragExit(event, newWindowButtonObserver);"/>
  1314.  
  1315.         <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1316.                        label="&cutCmd.label;"
  1317.                        command="cmd_cut"
  1318.                        tooltiptext="&cutButton.tooltip;"/>
  1319.  
  1320.         <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1321.                        label="©Cmd.label;"
  1322.                        command="cmd_copy"
  1323.                        tooltiptext="©Button.tooltip;"/>
  1324.  
  1325.         <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1326.                        label="&pasteCmd.label;"
  1327.                        command="cmd_paste"
  1328.                        tooltiptext="&pasteButton.tooltip;"/>
  1329.  
  1330.     </toolbarpalette>
  1331.  
  1332.     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  1333.              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  1334.              fullscreentoolbar="true" mode="icons" 
  1335.              customizable="true"
  1336.              defaultset="back-button,forward-button,reload-button,stop-button,home-button,urlbar-container,go-container,search-container,fullscreenflex,window-controls"
  1337.              context="toolbar-context-menu">
  1338.       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
  1339.       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
  1340.         <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  1341.                        tooltiptext="&fullScreenMinimize.tooltip;"
  1342.                        oncommand="window.minimize();"/>
  1343.  
  1344.         <toolbarbutton id="restore-button" class="toolbarbutton-1"
  1345.                        tooltiptext="&fullScreenRestore.tooltip;"
  1346.                        oncommand="BrowserFullScreen();"/>
  1347.  
  1348.         <toolbarbutton id="close-button" class="toolbarbutton-1"
  1349.                        tooltiptext="&fullScreenClose.tooltip;"
  1350.                        oncommand="BrowserTryToCloseWindow();"/>
  1351.       </hbox>
  1352.     </toolbar>
  1353.  
  1354.     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
  1355.  
  1356.     <toolbar id="PersonalToolbar" class="chromeclass-directories" iconsize="small"
  1357.              customizable="true" defaultset="personal-bookmarks" mode="icons"
  1358.              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
  1359.              context="toolbar-context-menu"/>
  1360.   </toolbox>
  1361.   
  1362.   <stack id="browser-stack" flex="1">
  1363.     <hbox flex="1" id="browser">
  1364.       <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
  1365.         <sidebarheader align="center">
  1366.           <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
  1367.           <image id="sidebar-throbber"/>
  1368.           <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
  1369.         </sidebarheader>        
  1370.         <browser id="sidebar" flex="1" autoscroll="false"
  1371.                  style="min-width: 166px; width: 225px; max-width: 394px;"/>
  1372.       </vbox>    
  1373.     
  1374.       <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  1375.       <vbox id="appcontentVerticalArea" flex="1">
  1376.         <vbox id="appcontent" flex="1">
  1377.           <tabbrowser id="content" disablehistory="true"
  1378.                     flex="1" contenttooltip="aHTMLTooltip"
  1379.                     contentcontextmenu="contentAreaContextMenu"
  1380.                     onnewtab="BrowserOpenTab();"
  1381.                     autocompletepopup="PopupAutoComplete"
  1382.                     ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
  1383.                     onclick="return contentAreaClick(event, false);"
  1384.                     />
  1385.           </vbox>
  1386.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  1387.       <toolbarbutton id="find-closebutton" tooltiptext="&findCloseButton.tooltip;"
  1388.                      oncommand="gFindBar.closeFindBar();"/>
  1389.  
  1390.       <label control="find-field" id="find-label" class="find-fast"/>
  1391.       <hbox id="find-field-container" class="find-fast">
  1392.         <textbox id="find-field" oninput="gFindBar.find(this.value);"
  1393.                 onkeypress="gFindBar.onFindBarKeyPress(event);"
  1394.                 onblur="gFindBar.onFindBarBlur();"
  1395.                 oncompositionstart="gFindBar.onFindBarCompositionStart(event);"
  1396.                 oncompositionend="gFindBar.onFindBarCompositionEnd(event);"/>
  1397.       </hbox>
  1398.       <toolbarbutton id="find-next" label="&next.label;" tooltiptext="&next.tooltip;"
  1399.                      command="cmd_findAgain" disabled="true" accesskey="&next.accesskey;"/>
  1400.       <toolbarbutton id="find-previous" label="&previous.label;" tooltiptext="&previous.tooltip;"
  1401.                      command="cmd_findPrevious" disabled="true" accesskey="&previous.accesskey;"/>
  1402.       <toolbarbutton id="highlight" label="&highlight.label;"
  1403.                      tooltiptext="&highlight.tooltiptext;"
  1404.                      oncommand="gFindBar.toggleHighlight(!this.checked);
  1405.                                 if (gFindBar.mFindMode != FIND_NORMAL)
  1406.                                   gFindBar.setFindCloseTimeout();"
  1407.                      type="checkbox" disabled="true"
  1408.                      accesskey="&highlight.accesskey;"/>
  1409.       <checkbox id="find-case-sensitive"
  1410.                 oncommand="gFindBar.toggleCaseSensitiveCheckbox(this.checked);"
  1411.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  1412.       <label id="match-case-status" class="find-fast"/>
  1413.       <image id="find-status-icon"/>
  1414.       <label id="find-status"/>
  1415.     </toolbar>
  1416. </vbox>
  1417.     </hbox>
  1418.   </stack>
  1419.   <statusbar class="chromeclass-status" id="status-bar"
  1420.              ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  1421.     <statusbarpanel id="statusbar-display" flex="1"/>
  1422.     <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
  1423.       <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  1424.     </statusbarpanel>
  1425.     <statusbarpanel id="security-button" class="statusbarpanel-iconic-text"
  1426.                     ondblclick="if (event.button == 0) displaySecurityInfo();"/>
  1427.     <statusbarpanel id="page-report-button" type="menu" 
  1428.                     class="statusbarpanel-menu-iconic" 
  1429.                     tooltiptext="&pageReportIcon.tooltip;">
  1430.       <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  1431.         <menuitem observes="blockedPopupAllowSite"/>
  1432.         <menuitem observes="blockedPopupEditSettings"/>
  1433.         <menuitem observes="blockedPopupDontShowMessage"/>
  1434.         <menuseparator observes="blockedPopupsSeparator"/>
  1435.       </menupopup>
  1436.     </statusbarpanel>
  1437.   </statusbar>
  1438. </window>
  1439.